package Lab02.test10;


public class AmericanPeople extends People {
    //重写public void speakHello()方法
    public void speakHello() {
        System.out.println("How do you do?");
    }

    //重写public void averageHeight() 方法
    public void averageHeight() {
        height = 178.68;
        System.out.println("AmericanPeople average Height:" + height + "厘米");
    }
    //重写public void averageWeight()方法
    public void averageWeight()
    {
        weight=68;
        System.out.println("AmericanPeople average weight:"+ weight);
    }
}
